package com.scunewscreeper.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Id;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.Entity;
import java.util.Date;

/**
 * generated by Generate POJOs.groovy
 * <p>Date: 2021-12-03 00:26:45.</p>
 *
 * @author custom
 */

@Getter
@Setter
@ToString
@NoArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
@Entity
@Table(name = "data_t_news")
@DynamicInsert
public class DataTNews implements Serializable {
    private static final long serialVersionUID = 2591771311464941082L;

    /**
     * uuid
     */
    @Column(name = "D_ID")
    @ApiModelProperty(value = "uuid")
    @Id
    private String dId;

    /**
     * 新闻原址
     */
    @Column(name = "D_URL")
    @ApiModelProperty(value = "新闻原址")
    private String dUrl;

    /**
     * 新闻来源，外键
     */
    @Column(name = "D_SOURCE")
    @ApiModelProperty(value = "新闻来源，外键")
    private String dSource;

    /**
     * 新闻类型，外键
     */
    @Column(name = "D_TYPE")
    @ApiModelProperty(value = "新闻类型，外键")
    private String dType;

    /**
     * 新闻标题
     */
    @Column(name = "D_TITLE")
    @ApiModelProperty(value = "新闻标题")
    private String dTitle;

    /**
     * 新闻发布时间
     */
    @Column(name = "D_SUBDATE")
    @ApiModelProperty(value = "新闻发布时间")
    private Date dSubdate;

    /**
     * 浏览量
     */
    @Column(name = "D_READ_NUM")
    @ApiModelProperty(value = "浏览量")
    private Integer dReadNum;

    /**
     * 点赞数
     */
    @Column(name = "D_LIKE_NUM")
    @ApiModelProperty(value = "点赞数")
    private Integer dLikeNum;

    /**
     * 新闻内容
     */
    @Column(name = "D_CONTENT")
    @ApiModelProperty(value = "新闻内容")
    private String dContent;

    /**
     * 入库时间
     */
    @Column(name = "D_ENTRYTIME")
    @ApiModelProperty(value = "入库时间")
    private Date dEntrytime;

    @Column(name = "D_PHOTO")
    @ApiModelProperty(value = "封面url")
    private String dPhoto;

}
